package com.shop.portal.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class IndexController {
    private static final Logger logger = LoggerFactory.getLogger(IndexController.class);

    @Value("${rediskey.nginxImage.url.key}")
    private String INDEX_NGINX_IMAGE_URL;

    @RequestMapping("/index")
    public String index(Model model) {
        model.addAttribute("nginxImage", INDEX_NGINX_IMAGE_URL);
        return "index";
    }
}
